//
//  SpiderWeb.h
//  StarBugs
//
//  Created by ?? ? on 7/3/12.
//  Copyright 2012 antisword@playorca.com. All rights reserved.
//

#ifndef __SpiderWeb_h__
#define __SpiderWeb_h__

#include "cocos2d.h"
#include "Object/ObjectSprite.h"

class SpiderWeb : public ObjectSprite
{
public:
    SpiderWeb();
    ~SpiderWeb();
    
//    virtual void setBodyAngle(bool isInv);
    virtual void setBody(b2World* _world);
//    virtual void removeBody(b2World *_world);
    virtual void setMove(CCPoint pt); 
    
    void setCaught();
    void setAim(cocos2d::CCPoint pt);
    void shot();
    void setInitPos();
    bool isEnable(){return (useTimer == 0);};
    bool isShot;
private:
    virtual void draw();
    void call_shot();
    void tick(float dt);
//    cocos2d::CCPoint centerPoint;
    cocos2d::CCPoint linePoint[27 * 2];
    
    float useTimer;
    
    
};
#endif